<?php

class Control_Homepage_SVNUpdates extends QUI_Control_Abstract
{
    function render()
    {
        $filename = Q::ini('appini/site/svnlog_filename');
        if (is_readable($filename))
        {
            $svnlog = (array)include($filename);
        }
        else
        {
            $svnlog = array();
        }
        $svnlog = array_slice($svnlog, 0, Q::ini('appini/site/svnlog_length'));
        $this->_view['svnlog'] = $svnlog;
        return $this->_fetchView(dirname(__FILE__) . '/svnupdates_view.php');
    }
}

